home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / c / pdc / include / stdarg.h < prev    next >
Text File  |  1990-04-05  |  1KB  |  28 lines

  1. /*
  2.  * Libraries and headers for PDC release 3.3 (C) 1989 Lionel Hummel.
  3.  * PDC Software Distribution (C) 1989 Lionel Hummel and Paul Petersen.
  4.  * PDC I/O Library (C) 1987 by J.A. Lydiatt.
  5.  *
  6.  * This code is freely redistributable upon the conditions that this 
  7.  * notice remains intact and that modified versions of this file not
  8.  * be included as part of the PDC Software Distribution without the
  9.  * express consent of the copyright holders.  No warrantee of any
  10.  * kind is provided with this code.  For further information, contact:
  11.  *
  12.  *  PDC Software Distribution    Internet:                     BIX:
  13.  *  P.O. Box 4006             or hummel@cs.uiuc.edu            lhummel
  14.  *  Urbana, IL  61801-8801       petersen@uicsrd.csrd.uiuc.edu
  15.  */
  16.  
  17. /* Macros enabling functions to portably handle variable numbers of
  18.  * arguments.
  19.  */
  20.  
  21. typedef         char *va_list;
  22.  
  23. #define         va_decl         int va_alist;
  24. #define         va_start(X)     (X = (char *) va_alist)
  25. #define         va_arg(X,T)     ((T *)(X += sizeof(T)))[-1]
  26. #define         va_end(X)
  27.  
  28.